package model.commands.turtlequeries;

import model.Environment;
import model.SyntaxErrorException;
import model.commands.Command;

/**
 * Name:
 * YCOR
 * 
 * Description:
 * returns the turtle's Y coordinate in pixels from the center of the screen
 *
 * @author Erick Gonzalez
 */
public class YCorCommand extends Command {

    @Override
    public int evaluate (Environment e) throws SyntaxErrorException {
        return e.invokeCommandableMethod(Environment.GET_Y_COORDINATE).getYCoordinate();
    }
    
}
